@name yt {
  @b toast {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 44px;
    line-height: 44px;
    display: flex;
    align-items: center;
    white-space: nowrap;
    z-index: 1000;
    padding-top: 22px;
    font-size: 15px;
    background-color: #ffffff;
    box-shadow: 1px 0 3px #eee;
    transition: transform .2s ease;
    @when error {
      color: #fff;
      background-color: #FF5050;
    }

    @when success {
      color: #333;
      background-color: #fff;
      .yt-toast-icon {
        color: #29f090
      }
    }

    @when tool {
      color: #333;
      background-color: #fff;
      .yt-toast-icon {
        color: #46BAFF
      }
    }

    @e icon {
      font-size: 24px;
      margin: 0 10px;
      height: 44px;
    }

    @e text {
      flex: 1;
    }

    @e opacity {
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 22px;
      background-color: rgba(0, 0, 0, 0.2);
    }
  }
}
